﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Data;
using LYWebsite.Models;

namespace LYWebsite.Convert
{
    public class UserConverter
    {
        //public static ChargeModel UserModelConvert(User user)
        //{
        //    if(user==null)
        //        return null;
        //    return new ChargeModel
        //    {
        //        UserName = user.UserName,
        //        CarId = user.Car.CarId,
        //        PhoneNumber = user.PhoneNumber,
        //        Id = user.UserId,
        //        Guid = user.GUID
        //    };
        //}

        //public static User UserObjectConvert(ChargeModel userModel)
        //{
        //    if (userModel == null)
        //        return null;
        //    return new User
        //    {
        //        UserName = userModel.UserName,
        //        Car =new Car() {CarId = userModel.CarId},
        //        PhoneNumber = userModel.PhoneNumber
        //    };
        //}
    }
}